package na.learn.java.threads;

public class ResourcePool {

	private String resource;

	public static void main(String[] args) {

		ResourcePool resourcePool = new ResourcePool();

		Thread producerThread = new Thread(new Worker(resourcePool));
		producerThread.setName("PROD");
		// producerThread.setDaemon(true);

		producerThread.start();

	}

	public String getResource() {
		return resource;
	}

	public void setResource(String resource) {
		this.resource = resource;
	}
}
